package shen.yue.example.one;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;

import shen.yue.example.one.adapter.MainAdapter;

public class MainActivity extends Activity {

    private ListView lv_main;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
    }

    private void initView() {
        lv_main = (ListView) findViewById(R.id.lv_main);
        lv_main.setAdapter(new MainAdapter(this));
    }
}
